package oop.memory;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Person
 * Package: oop.memory
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-10
 * Time: 14:58
 */

public class Person {

    //属性
    String name;
    int age;
    char gender;

    //方法
    public void eat(){
        System.out.println("人吃饭");
    }

    public void sleep(int hour){
        System.out.println("人至少保证明天" + hour + "小时睡眠");
    }

    public void interests(String hobby){
        System.out.println("我的爱好是: " + hobby);
    }


}
